Fix admin count to not include bots
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 20 May 2003 01:08:48 +0000 (01:08 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 20 May 2003 01:08:48 +0000 (01:08 +0000)
includes/SpecialStatistics.php

index cbbbb64..8c4335f 100644 (file)
@@ -36,7 +36,7 @@ function wfSpecialStatistics()
        $total = $row->total;
 
        $sql = "SELECT COUNT(user_id) AS total FROM user " .
-         "WHERE user_rights <> ''";
+         "WHERE user_rights LIKE '%sysop%'";
        $res = wfQuery( $sql, $fname );
        $row = wfFetchObject( $res );
        $admins = $row->total;